package com.telchina.workorder.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.telchina.common.annotation.Excel;
import com.telchina.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 回复单对象 wo_reply
 *
 * @author konghao
 * @date 2023-02-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WoReply extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(
            type = IdType.ASSIGN_UUID
    )
    private String id;

    /**
     * 回复单号
     */
    @Excel(name = "回复单号")
    @ApiModelProperty(value = "回复单号")
    private String replyNo;

    /**
     * 回复方式 0 回单  1 退单
     */
    @Excel(name = "回复方式")
    @ApiModelProperty(value = "回复方式 0 回单  1 退单")
    private String replyType;

    /**
     * 回复内容
     */
    @ApiModelProperty(value = "回复内容")
    private String replyContent;

    /**
     * 经办id
     */
    @Excel(name = "经办id")
    private String handledId;

    /**
     * 经办人id
     */
    @Excel(name = "经办人id")
    @ApiModelProperty(value = "经办人id")
    private String replyerId;

    /**
     * 经办人
     */
    @Excel(name = "经办人")
    @ApiModelProperty(value = "经办人")
    private String handledBy;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    @ApiModelProperty(value = "联系电话")
    private String contactNumber;

    /**
     * 回复人
     */
    @Excel(name = "回复人")
    @ApiModelProperty(value = "回复人")
    private String replyer;

    /**
     * 回复时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "回复时间")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date replyTime;

    /**
     * 工单编号
     */
    @Excel(name = "工单编号")
    @ApiModelProperty(value = "工单编号")
    private String workOrderNumber;

    /**
     * 部门
     */
    private String deptId;

}
